import json
from api_demo.ihrm_test import config


# 读取json文件并转换为字典
def read_json(filename):
    file = config.BASE_DIR + "/data/" + filename
    with open(file, "r", encoding="utf-8") as f:
        return json.load(f)
